<template>
	<view class="content">
		<video v-for="(item, index) in arrList" :key="index" class="myVideo" :src="urls + item.file" :poster="urls + item.image" controls loop="">
			
		</video>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				arrList:[],
				urls:this.$common.baseUrl
			}
		},
		onShow(){
			this.initData();
		},
		methods: {
			//初始化数据
			initData(){
				this.$common.requests('/api/order/videolist').then(res => {
					if (res.data.code == 1) {
						this.arrList = res.data.data;
					}
				})
			},
		}
	}
</script>

<style>
	.content{
		width: 100%;
		height: 100vh;
		background: #F9F9F9;
		border-top: 1px solid #E6E6E6;
		font-size: 30upx;
	}
	.myVideo{
		width: 100%;
		height: 390upx;
		margin-bottom: 30upx;
	}
</style>
